using System;
using System.Collections.Generic;
using System.Text;

namespace GraphFS
{

	public sealed class FSEdgeCache : Dictionary<Int64, FSEdge>
	{
		static readonly FSEdgeCache instance = new FSEdgeCache();
		static FSEdgeCache()
		{
		}
		FSEdgeCache()
		{
			Initialize();
		}
		public static FSEdgeCache Instance
		{
			get
			{
				return instance;
			}
		}





		private FSEdgeList edgeList;
		private void Initialize()
		{
			edgeList = new FSEdgeList();
			//edgeList.Read()
		}



		public new FSEdge this [Int64 i]
		{
			get
			{
				if (!base.ContainsKey(i))
				{
					base.Add(i, edgeList.GetEdge(i));
				}
				return base [i];

			}
		}

		public FSEdge this [FSNode node]
		{
			get
			{

				return null;
			}
		}



	}


}
